﻿using JobSchedule.Base;
using Quartz;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading;
using System.Threading.Tasks;

namespace JobSchedule.Jobs
{
    public class TestJob : JobBase
    {
        public override void ExecuteJob(IJobExecutionContext context)
        {
            var color = Console.ForegroundColor;
            Console.ForegroundColor = ConsoleColor.Red;
            Console.Out.WriteLineAsync("3.测试------" + DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss"));
            logger.Info("测试" + DateTime.Now);
        }
    }
}
